feat(url-to-frame-md): website capture → frame.md design system + showcase renderer - #2005
Closed
xuanruli wants to merge 1 commit into
Closed
feat(url-to-frame-md): website capture → frame.md design system + showcase renderer#2005xuanruli wants to merge 1 commit into
xuanruli wants to merge 1 commit into
Conversation
…wcase renderer Toolkit that turns a `hyperframes capture` of any website into a video-first design spec (frame.md) + a brand-dressed showcase board: - build-frame-from-capture.mjs: capture → frame.md (palette incl. vivid brand accents, two type ramps, spacing, radii, shadows, video-usable components); faithful to capture - verify-frame.mjs: L0/L1/L2 machine gates (schema, coherence, fidelity) - render-showcase.mjs: frame.md → showcase.png (composed 16:9 frames + 9:16 portrait) - reextract-design.mjs + lib/: offline re-extract; shared color/font/token helpers Accent selection rejects injected-widget strays (must be a palette member, paint a bg, or recur); vivid secondary brand hues surfaced as accent-2/3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Author
|
Superseded — this toolkit belongs in experiment-framework (heygen/services/heygen_server/hyperframes/url-to-frame-md), not hyperframes. Re-homing there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
A toolkit (
url-to-frame-md/) that turns ahyperframes captureof any website into a video-first design spec (frame.md) and a brand-dressed showcase board (showcase.png).build-frame-from-capture.mjs— capture →frame.md: palette (incl. vivid secondary brand accents), two type ramps, spacing, radii, shadows, and video-usable components. Faithful to the capture.verify-frame.mjs— L0/L1/L2 machine gates (schema · internal coherence · fidelity to the captured site).render-showcase.mjs—frame.md→showcase.png(composed 16:9 frames + a 9:16 portrait section) via headless Chrome. Demo avatar/hero load from hosted URLs; overridable with--avatar/--hero.reextract-design.mjs+lib/— offline re-extract against a saved capture; shared color/font/token helpers.Why
Turns a captured site's design system into reusable, brand-faithful video frames. Two notable pieces:
count≥5); otherwise it's dropped. This stopped a recurring cobalt#3860BE(a consent/focus-ring artifact) from burying real brand colors on unrelated sites.accent-2/accent-3.How
Pure Node; reads
extracted/tokens.json+design-styles.json. Every hex/size is faithful to the capture —verify-frame.mjsL2 enforces this. No new dependencies.Test plan
verify-frame(L0/L1/L2 green).oxlint+oxfmtclean on all scripts.🤖 Generated with Claude Code